#include <sched.h>
#include <stdio.h>
#include <time.h>

int main()
{
  struct timespec ts;
  if(!sched_rr_get_interval(0, &ts)){
    printf("time slice is %ld seconds %ld nanoseconds\n",ts.tv_sec, ts.tv_nsec);
  }
  
  return 0;
}
